{#**
 * 2007-2017 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2017 PrestaShop SA
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *#}
<div class="row">
  {% if 'PS_STOCK_MANAGEMENT'|configuration %}
    <div class="col-xl-2 col-lg-6 custom-width m-b-1">
      <label class="form-control-label">{{ form.quantity.vars.label }}</label>
      {{ form_errors(form.quantity) }}
      {{ form_widget(form.quantity) }}
    </div>
  {% endif %}

  <div class="col-xl-2 col-lg-6 custom-width m-b-1">
    <label class="form-control-label">{{ form.cost_price.vars.label }}</label>
    {{ form_errors(form.cost_price) }}
    {{ form_widget(form.cost_price) }}
  </div>

  <div class="col-xl-2 col-lg-6 custom-width m-b-1">
    <label class="form-control-label">{{ form.impact_on_weight.vars.label }}</label>
    {{ form_errors(form.impact_on_weight) }}
    {{ form_widget(form.impact_on_weight) }}
  </div>

  <div class="col-xl-3 col-lg-6 custom-width m-b-1">
    <label class="form-control-label">{{ form.impact_on_price_te.vars.label }}</label>
    {{ form_errors(form.impact_on_price_te) }}
    {{ form_widget(form.impact_on_price_te) }}
  </div>

  <div class="col-xl-3 col-lg-6 custom-width m-b-1">
    <label class="form-control-label">{{ form.impact_on_price_ti.vars.label }}</label>
    {{ form_errors(form.impact_on_price_ti) }}
    {{ form_widget(form.impact_on_price_ti) }}
  </div>

  <div class="col-xl-4 col-lg-6 custom-width m-b-1">
    <label class="form-control-label">{{ form.date_availability.vars.label }}</label>
    {{ form_errors(form.date_availability) }}
    {{ form_widget(form.date_availability) }}
  </div>

  <div class="col-xl-4 col-lg-6 custom-width">
    <label class="form-control-label">{{ form.reference.vars.label }}</label>
    {{ form_errors(form.reference) }}
    {{ form_widget(form.reference) }}
  </div>

  <div class="col-xl-4 col-lg-6 custom-width">
    <label class="form-control-label">{{ form.minimal_quantity.vars.label }}</label>
    {{ form_errors(form.minimal_quantity) }}
    {{ form_widget(form.minimal_quantity) }}
  </div>
</div>
<div class="row">
    <div class="col-md-3 col-md-offset-7">
      <label class="form-control-label">&nbsp;</label>
      <button id="delete-combinations" class="btn btn-tertiary-outline btn-block" data="{{ path('admin_delete_attribute', {'idProduct': id_product}) }}">
        <i class="material-icons">delete</i>
        {{ 'Delete combinations'|trans({}, 'Admin.Catalog.Feature') }}
      </button>
    </div>
    <div class="col-md-2">
      <label class="form-control-label">&nbsp;</label>
      <button id="apply-on-combinations" class="btn btn-primary-outline btn-block">
        {{ 'Apply'|trans({}, 'Admin.Actions') }}
      </button>
    </div>
  {{ form_widget(form) }}
</div>
